8e445f3a211395d43895f747d04158ff7f9c0913,spring-core/src/main/java/org/springframework/core/type/StandardAnnotationMetadata.java,StandardAnnotationMetadata,isAnnotated,#String#,122
Before Change
}
public boolean isAnnotated(String annotationType) {
Annotation[] anns = getIntrospectedClass().getAnnotations();
for (Annotation ann : anns) {
if (ann.annotationType().getName().equals(annotationType)) {
return true;
}
for (Annotation metaAnn : ann.annotationType().getAnnotations()) {
if (metaAnn.annotationType().getName().equals(annotationType)) {
return true;
}
}
After Change
return AnnotatedElementUtils.hasMetaAnnotationTypes(getIntrospectedClass(), annotationType);
}
public boolean isAnnotated(String annotationType) {
return AnnotatedElementUtils.isAnnotated(getIntrospectedClass(), annotationType);
}
public Map<String, Object> getAnnotationAttributes(String annotationType) {